import request from '@/utils/request'

// 查询测试节点1列表
export function listTable1(query) {
  return request({
    url: '/aitcommon/table1/list',
    method: 'get',
    params: query
  })
}

// 查询测试节点1详细
export function getTable1(code) {
  return request({
    url: '/aitcommon/table1/' + code,
    method: 'get'
  })
}

// 新增测试节点1
export function addTable1(data) {
  return request({
    url: '/aitcommon/table1',
    method: 'post',
    data: data
  })
}

// 修改测试节点1
export function updateTable1(data) {
  return request({
    url: '/aitcommon/table1',
    method: 'put',
    data: data
  })
}

// 删除测试节点1
export function delTable1(code) {
  return request({
    url: '/aitcommon/table1/' + code,
    method: 'delete'
  })
}

// 导出测试节点1
export function exportTable1(query) {
  return request({
    url: '/aitcommon/table1/export',
    method: 'get',
    params: query
  })
}